package org.vectrics.recruiter.struts.admin;

import org.vectrics.common.util.StringUtils;
import org.vectrics.struts.Request;
import org.vectrics.user.web.struts.UserProfileForm;

/**
 * @author mmoore
 */
public class AdminUserProfileForm extends UserProfileForm {
	


	public static final long serialVersionUID = 7432642372124L;
	 
	 private String[] securityGroups;
	 
	 private String[] securityGroupsSelected;

	protected void onError(Request request) {
	}

	protected boolean getPasswordRequired() {
		if (StringUtils.isNullOrBlank(this.getUserId()))
			return true;
		else
			return false;
	}

	protected boolean getNewUserNameRequired() {
		return false;
	}

	protected boolean getUserNameRequired() {
		return true;
	}

	protected boolean getCompanyRequired() {
		return(false);
	}
	
	protected boolean getNameRequired() {
		return false;
	}
	
	protected boolean getEmailRequired() {
		return(false);
	}
	
	protected boolean getPasswordHintRequired() {
		return(false);
	}

	public void setSecurityGroupsSelected(String[] securityGroupsSelected) {
		this.securityGroupsSelected = securityGroupsSelected;
	}

	public String[] getSecurityGroupsSelected() {
		return securityGroupsSelected;
	}


	public void setSecurityGroups(String[] securityGroups) {
		this.securityGroups = securityGroups;
	}

	public String[] getSecurityGroups() {
		return this.securityGroups;
	}

	
}
